package com.chen.entity;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "tb_user")
public class User implements Serializable {
    //主键
    @Id
    private String id;
    //邮箱 用于登录的账户
    private String email;
    //密码
    private String password;
    //用户名
    private String username;
    //创建时间
    private String create_time;
    //状态  1正常 0冻结
    private String state;
    //@Transient  不是数据库字段注解
}
